import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "./SeqIntHelper";
type int = number;
//class SAutoFeedMemory
    
    export  class SAutoFeedMemory extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SAutoFeedMemory();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.feedType);
            SeqIntHelper.write(arg1, this.memorys);
            SeqIntHelper.write(arg1, this.newItemCodes);
            arg1.writeBool(this.reachMax);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.feedType = arg1.readInt();
            this.memorys = SeqIntHelper.read(arg1);
            this.newItemCodes = SeqIntHelper.read(arg1);
            this.reachMax = arg1.readBool();
            return;
        }

        public /* const */_type: int=825;

        public /* var */feedType: int;

        public /* var */memorys: Array<any>;

        public /* var */newItemCodes: Array<any>;

        public /* var */reachMax: Boolean;

        public static /* var */_regist: SAutoFeedMemory;
    }

            SAutoFeedMemory._regist = new SAutoFeedMemory(true);
        